package mn.idax.exchange.otc.service;

import mn.idax.exchange.otc.dto.ChatLogDto;
import mn.idax.exchange.otc.dto.OrderUserDto;
import mn.idax.exchange.otc.entity.ChatLog;
import mn.idax.exchange.otc.entity.OTCOrder;
import mn.idax.exchange.otc.entity.UserInfo;

import java.util.List;

public interface ChatLogService {

    ChatLog insert(ChatLog chatLog);

    List<ChatLogDto> findAllChatLog(String orderId,boolean isStaff);

    List<ChatLogDto> findLatestChatLog(String orderId, Integer size);

    List<ChatLogDto> findEarlierChatLog(String orderId, Integer size, Long time);

    List<UserInfo> getUserInfoListByOrderId(String orderId);

    UserInfo getUserInfoByOrderIdAndUserId(String orderId, int userId);

    boolean isRelatedUser(String orderId, int userId);

    OrderUserDto getUserByOrderId(String orderId);

	UserInfo getUserInfoById(Integer id);
	
	boolean checkIsStaffByUserId(Integer userId);

    OTCOrder getOTCOrderByOrderId(String orderId);

}
